package me.zhengjie.spider.common;

public class SpiderConstant {

    public static final String ALT = "alt";
    public static final String IMG = "img";
    public static final String HREF = "href";
    public static final String PLAY_LINK = "play_link";
    public static final String TARGET_LINK = "target_link";
    public static final String TYPE = "type";
    public static final String TAG = "tag";
    public static final String TS_NAME = "ts_name";
    public static final String TARGET_TYPE = "target_type";
    public static final String PLAY_LINK_DOMAIN = "play_link_domain";
    public static final String AUTHOR = "author";
    public static final String DETAIL = "detail";
    public static final String DETAIL_HREF = "detail_href";
    public static final String IMG_LIST = "img_list";
    public static final String NEXT_PAGE = "next_page";
    public static final String KEY_HAS_NEXT_PAGE = "key_has_next_page";
    public static final String KEY_HAS_NEXT_PAGE_RULE = "key_has_next_page_rule";

    public static final String SPIDER_VIDEO_KEY = "spider:video:%s";
    public static final String SPIDER_OVER_WRITE_LOCAL_FILE = "spider:video:overwrite:key";
    public static final String SPIDER_COMIC_KEY = "spider:comic:%s";

    public static final String SEPARATOR = ",";
    public static final String COLON = ":";
    public static final String FOLDER_DIR = "\\";
    public static final String SHAP = "#";

    public static final String FILE_NAME_JPG = "index.jpg";
    public static final String FILE_NAME_M3U8 = "index.m3u8";

    public static final String FILE_TYPE_JS = "js";
    public static final String FILE_TYPE_JPG = "jpg";
    public static final String TYPE_JPG = ".jpg";
    public static final String TYPE_M3U8 = ".m3u8";
    public static final String FILE_TYPE_M3U8 = "m3u8";

    public static final String FILE_FOLDER_VIDEO = "video\\%s\\";
    public static final String FILE_FOLDER_COMIC = "comic\\%s\\";

    public static final String TARGET_TYPE_XPATH = "xpath";
    public static final String TARGET_TYPE_REGEX = "regex";

    public static final String JPG_REGEX = "http[s]?://[[[\\w]*[-]?]*[.]?]*[:]?[[\\d]+]?[[/]?[\\w]*[\\d]+[-]?[\\w]*[\\d]+]+[[=]?[\\w]*]?[\\.]?[[\\w]*]?";
    public static final String JPG_REGEX_X = "http[s]?://[[\\w]*[-]?[\\.]?]*[[:]?[\\d]*]?[[/]?[-]?[\\w]*]*[[\\?]?[\\w]*[=]?[\\w]*]*[[\\.]?[\\w]*]?";
    public static final String JPG_REGEX_XX = "http[s]?://[[\\w]?[\\d]?[\\.]?[-]?[:]?[/]?]*";

    public static final String DEFAULT_TAG = "DEFAULT_TAG";
    public static final String DEFAULT_AUTHOR = "DEFAULT_TAG";
}
